﻿            function Transform()
            {
            //Load XML
            var xml = new ActiveXObject("Microsoft.XMLDOM");
            xml.async = false;
            xml.load("Example.xml");
       
            //Load XSL
            var xsl = new ActiveXObject("Microsoft.XMLDOM");
            xsl.async = false;
            xsl.load("Example.xsl");
            
            //Transform
            var transform = xml.transformNode(xsl);

		   //Write to screen
                  var spantag = document.getElementById("example");
            spantag.innerHTML = transform; 

            }

      